<?php

namespace App\Http\Repositories;

use App\Models\User;

class UserRepository
{
    protected $userModel;

    public function __construct(User $user)
    {
        $this->userModel = $user;
    }

    public function getList()
    {
       return $this->userModel->getList();
    }

    public function changeEnable($id, $status)
    {
        return $this->userModel->changeEnable($id, $status);
    }

    public function getUserCount()
    {
        return [
            "all_count" => $this->userModel->count(),
            "month_count" => $this->userModel->getMonthCount()
        ];
    }



}